#include <iostream>
template <typename X, int Size>
int dimof( X (&x)[Size] )
{
    return Size;
}
int main(int argc, char **argv)
{
	int b[20];
	std::cout << "dimof=" << dimof(b) << std::endl;
	return 0;
}
